package com.smartfarm.Zerenlian;

import com.smartfarm.Zerenlian.SafetyHandler;

// 责任链模式相关
public class EmergencyHandler extends SafetyHandler {
    @Override
    public void handleRequest(String event) {
        if (event.contains("紧急")) {
            System.out.println("紧急事件处理器: 触发全系统安全协议");
        } else if (nextHandler != null) {
            nextHandler.handleRequest(event);
        }
    }
}